<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        div
        {
            width: 100px;
            height: 150px;
            background-color: red;
            padding: 10px;
            border: 10px #fbd850 solid;
            margin: 10px;
        }
    </style>
    <script type="text/javascript" src="../../jQuery-JS/jquery-3.6.0.js"></script>
    <script type="text/javascript">
        $(function(){
            var $div=$("div");
            //1.内容尺寸height():height,width():width
            console.log($div.height(),$div.width());
            //2.内部尺寸innerHeight():height+padding,innerWidth():width+padding
            console.log($div.innerHeight(),$div.innerWidth());
            //3.外部尺寸outerHeight(false/true):height+padding+border，如果是true,加上margin
            console.log($div.outerHeight(false),$div.outerHeight(true));
            //outerwidth(false/true):width+padding+border，如果是true，加上margin
            console.log($div.outerWidth(false),$div.outerWidth(true));
        })
    </script>
</head>
<body>
    <div>div</div>
    <!--
        1.内容尺寸
        height():height
        width():width
        2.内部尺寸
        innerHeight():height+padding
        innerWidth():width+padding
        3.外部尺寸
        outerHeight(false/true):height+padding+border，如果是true,加上margin
        puterwidth(false/true):width+padding+border，如果是true，加上margin
    -->
</body>
</html>